<?php
include_once("../service/productService.php");
include_once("../util/constant.php");
include_once("../util/functionUtil.php");


$disId = $_GET["disId"];

if(deleteDiscount($disId)){
    removeDir("../image/discount/".$disId);
    echo "<script>window.location.href = '../admin/discount.php?action=".DELETE_SUCCESSFULLY."';</script>";    
} else{
    echo "<script>window.location.href = '../admin/discount.php?action=".DELETE_FAILED."';</script>";
}

?>